package com.atwulidun.factory02.factorymethod.pizza;

// 定义一个抽象类，不同类型的pizza继承该抽象类
public abstract class Pizza {
    protected String name;

    public Pizza(String name) {
        this.name = name;
    }

    public abstract void prepare();
    public void bake() {
        System.out.println(name + "baking;");
    }
    public void cut() {
        System.out.println(name + "cutting;");
    }
    public void box() {
        System.out.println(name + "boxing;");
    }
}
